package com.woniuxy.java102vuecli.service.impl;

import com.woniuxy.java102vuecli.entity.Department;
import com.woniuxy.java102vuecli.mapper.DepartmentMapper;
import com.woniuxy.java102vuecli.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author author
 * @Create 2023-09-15 11:14
 */
@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    DepartmentMapper departmentMapper;

    @Override
    public List<Department> getAllDepartments() {
        return departmentMapper.selectAllDepartments();
    }
}
